import React, { Dispatch } from 'react'
import * as actions from '../../redux/actions/index'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
function Class() {
    return (
        <div>
            Class
        </div>
    )
}
const mapStateToProps = (state: any) => {
    return {}
}
const mapDispatchToProps = (dispatch: any) => {
    // 用于合并aciotns 
    return { ...bindActionCreators(actions, dispatch) }
}

export default connect(mapStateToProps, mapDispatchToProps)(Class)
